%Set filesys = CreateObject("Scripting.FileSystemObject") if request.querystring("catID")<>"" then strSQL="SELECT * FROM Categories WHERE ID="&request.querystring("CatID")&"" Set rst = CreateObject("ADODB.Recordset") rst.Open strSQL, con, adOpenStatic, adLockReadOnly %>
|
|
![]() |
| << click to go back to products list |
<% 'ORDERING if request.form("orderby")<>"" then 'Order Grabbed from link orderby=request.form("orderby") else 'Default Order By Field orderby="" end if ''END MAY WANT TO ADD SCRIPTS if request.querystring("catID")<>"" then addsql=" AND (Cat_ID="&request.querystring("catID")&" OR Cat2_ID="&request.querystring("catID")&")" else addsql=" AND int(Cat_ID)=0" end if if request.form("partnum")<>"" then addsql=" AND PartNum LIKE '%"&request.form("partnum")&"%'" 'PASTE STRSQL strsql="SELECT ID,PartNum,ProductName,TotalQuantity,Descr,Amount,Price,ItemCost,Cat_ID,Deleted,DropType_ID,DropChoice_IDs FROM Products WHERE GroupProdID=0 AND Deleted=0" if addsql<>"" then strSQL=strSQL&" "&addsql 'if orderby<>"" then strSQL=strSQL&" Order By "&orderby strSQL=strSQL&" Order By PartNum" Set rsttable = CreateObject("ADODB.Recordset") rsttable.Open strSQL, con, adOpenStatic, adLockReadOnly if not rsttable.eof then%>
Sorry, No Items Entered Yet <%end if%> <%rsttable.close%> | ||||